import { computed } from 'vue'

/**
 * 文件类型选项
 */
export const useFileTypeOptions = () => {
  const { t } = useI18n()
  
  return computed(() => [
    { label: t('file.image'), value: 'image' },
    { label: t('file.document'), value: 'document' },
    { label: t('file.video'), value: 'video' },
    { label: t('file.audio'), value: 'audio' },
    { label: t('file.other'), value: 'other' }
  ])
}

/**
 * 搜索表单配置
 */
export const useSearchFormConfig = () => {
  const { t } = useI18n()
  
  return computed(() => ({
    keywordPlaceholder: t('file.searchPlaceholder'),
    typeSelectPlaceholder: t('file.typePlaceholder'),
    datePlaceholder: [t('common.startDate'), t('common.endDate')],
    searchButtonText: t('common.search'),
    resetButtonText: t('common.reset')
  }))
} 